package com.koron.order.common.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.common.bean.po.OrderReassignPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (OrderReassign)表服务接口
 *
 * @author zhouj
 * @since 2022-03-22 11:49:41
 */
public interface OrderReassignService {

    int insertOrUpdate(SessionFactory factory, OrderReassignPo orderReassign);

    int insertOrUpdateBatch(SessionFactory factory, List<OrderReassignPo> orderReassignList);

    int insert(SessionFactory factory, OrderReassignPo orderReassign);

    int insertBatch(SessionFactory factory, List<OrderReassignPo> orderReassignList);

    int update(SessionFactory factory, OrderReassignPo orderReassign);

    int updateByOrderId(SessionFactory factory, OrderReassignPo orderReassign);

    int deleteById(SessionFactory factory, String id);

    OrderReassignPo queryById(SessionFactory factory, String id);

    OrderReassignPo queryLatestByOrderId(SessionFactory factory, String orderId);

    PageInfo queryPageList(SessionFactory factory, OrderReassignPo orderReassign, PageQuery pageQuery);

    List<OrderReassignPo> queryList(SessionFactory factory, OrderReassignPo orderReassign);

    Integer notifyDispatch(SessionFactory factory,String currDs);

}
